export const getEnv = (key: keyof ImportMetaEnv): string => {
  return import.meta.env[key] || '';
};

export const isDevelopment = import.meta.env.MODE === 'development';
export const isProduction = import.meta.env.MODE === 'production';

export const apiConfig = {
  baseURL: getEnv('VITE_APP_API_BASE_URL'),
  timeout: parseInt(getEnv('VITE_APP_API_TIMEOUT') || '10000')
};